package com.systop.busafter.driver.service.impl;

import com.systop.commer.pojo.Driver;
import com.systop.busafter.driver.mapper.DriverMapper;
import com.systop.busafter.driver.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class DriverServiceImpl implements DriverService {

    @Autowired
    private DriverMapper driverMapper;


    @Override
    public int updatadriver(Driver driver) {
        return driverMapper.updatadriver(driver);
    }

    @Override
    public int insertdriver(Driver driver) {
        return driverMapper.insertdriver(driver);
    }

    @Override
    public Driver driverLogin(Driver driver) {
        return driverMapper.driverLogin(driver);
    }

    @Override
    public Driver numdriverLogin(Driver driver) {
        return driverMapper.numdriverLogin(driver);
    }

    @Override
    public List<Driver> driverListall() {
        return driverMapper.driverListall();
    }

    @Override
    public List<Driver> driverIdlist(int driver_id) {
        return driverMapper.driverIdlist(driver_id);
    }

    @Override
    public int deletedriver(int driver_id) {
        return driverMapper.deletedriver(driver_id);
    }

    @Override
    public List<Driver> driverFractionlist(int driver_fraction) {
        return driverMapper.driverFractionlist(driver_fraction);
    }

    @Override
    public List<Driver> driverStatelist(int driver_state) {
        return driverMapper.driverStatelist(driver_state);
    }

    @Override
    public List<Driver> driverDepositlist(float driver_deposit) {
        return driverMapper.driverDepositlist(driver_deposit);
    }

    @Override
    public List<Driver> driverNamelist(String driver_name) {
        return driverMapper.driverNamelist(driver_name);
    }

    @Override
    public List<Driver> drivername(String driver_name_n) { return driverMapper.drivername(driver_name_n); }

    @Override
    public Driver drivername1(String driver_name_n) {
        return driverMapper.drivername1(driver_name_n);
    }

    @Override
    public List<Driver> drivercard(String driver_card) { return driverMapper.drivercard(driver_card); }
}
